package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.bean.Book;
import org.example.bean.Category;
import org.example.util.JsonResult;
import org.springframework.stereotype.Service;

@Service
public interface CategoryService extends IService<Category> {
    JsonResult findCategory();

    JsonResult findCategory(int page);
    JsonResult findCategoryById(String id);

    JsonResult findCategoryByname(String name,int page);
    JsonResult saveCategory(Category category);
    JsonResult updateCategory(Category category);
    JsonResult removeCategory(String id);
    JsonResult updateCategoryStatus(String id,int status);
}
